home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / shapeg1a / frmsetti.frm (.txt) next >
Encoding:
Visual Basic Form  |  1999-10-11  |  2.0 KB  |  70 lines

  1. VERSION 5.00
  2. Begin VB.Form frmSettings 
  3.    BorderStyle     =   1  'Fixed Single
  4.    Caption         =   "Settings"
  5.    ClientHeight    =   1695
  6.    ClientLeft      =   45
  7.    ClientTop       =   390
  8.    ClientWidth     =   4680
  9.    Icon            =   "frmSettings.frx":0000
  10.    LinkTopic       =   "Form1"
  11.    MaxButton       =   0   'False
  12.    MinButton       =   0   'False
  13.    ScaleHeight     =   1695
  14.    ScaleWidth      =   4680
  15.    StartUpPosition =   3  'Windows Default
  16.    Begin VB.CheckBox chkClear 
  17.       Caption         =   "Automatic Clearing"
  18.       Height          =   255
  19.       Left            =   2700
  20.       TabIndex        =   3
  21.       Top             =   1140
  22.       Width           =   1635
  23.    End
  24.    Begin VB.CommandButton cmdOkay 
  25.       Caption         =   "O&kay"
  26.       Height          =   375
  27.       Left            =   240
  28.       TabIndex        =   2
  29.       Top             =   1080
  30.       Width           =   1095
  31.    End
  32.    Begin VB.ComboBox cboSets 
  33.       Height          =   315
  34.       Left            =   240
  35.       Style           =   2  'Dropdown List
  36.       TabIndex        =   0
  37.       Top             =   480
  38.       Width           =   4095
  39.    End
  40.    Begin VB.Label lblSets 
  41.       AutoSize        =   -1  'True
  42.       Caption         =   "Set Count:"
  43.       Height          =   195
  44.       Left            =   240
  45.       TabIndex        =   1
  46.       Top             =   240
  47.       Width           =   750
  48.    End
  49. Attribute VB_Name = "frmSettings"
  50. Attribute VB_GlobalNameSpace = False
  51. Attribute VB_Creatable = False
  52. Attribute VB_PredeclaredId = True
  53. Attribute VB_Exposed = False
  54. Option Explicit
  55. Private Sub cmdOkay_Click()
  56.     SetNum cboSets.ListIndex + 1
  57.     AutoClear = CBool(Abs(Int(chkClear)))
  58.     Unload Me
  59. End Sub
  60. Private Sub Form_Load()
  61. Dim i As Integer
  62.     On Error Resume Next
  63.     cboSets.Clear
  64.     For i = 1 To 150
  65.         cboSets.AddItem i & " Sets"
  66.     Next i
  67.     cboSets.ListIndex = UBound(Sets) - 1
  68.     chkClear = -Int(AutoClear)
  69. End Sub
  70.